home *** CD-ROM | disk | FTP | other *** search
- Path: locutus.rchland.ibm.com!usenet
- From: pstaite@vnet.ibm.com
- Newsgroups: comp.lang.c++
- Subject: Re: REBOOTING?
- Date: 5 Feb 1996 16:18:27 GMT
- Organization: IBM OS/2 Device Driver Development Rochester, MN
- Message-ID: <4f5akj$6ud@locutus.rchland.ibm.com>
- References: <3115AF63.8C1@coral.senod.uwf.edu>
- Reply-To: pstaite@vnet.ibm.com
- NNTP-Posting-Host: warpone.rchland.ibm.com
- X-Newsreader: IBM NewsReader/2 v1.2
-
- In <3115AF63.8C1@coral.senod.uwf.edu>, Tim <rforbess@coral.senod.uwf.edu> writes:
- >What is the C++ code to make a computer reboot? Thanx
-
- This is highly system dependent...
-
- Unix:
-
- cout << "Hey operator, type" << endl;
- cout << "/usr/local/etc/reboot" << endl;
-
- Well, that works on my AIX system ;-)
-
-
- OS/2:
-
- cout << "Type \"shutdown\" in at the OS/2 command prompt" << endl;
-
-
- Windoze:
-
- cout << "Exit to DOS, see DOS command." << endl;
-
-
- DOS:
-
- cout << "Hey user, hit that button marked \"Reset\"" << endl;
-
-
- VMS:
-
- cout << "Ask the sysadmin to reboot." << endl;
-
-
- MVS:
-
- cout << "You don't want to..." << endl;
-
-
- AS/400:
-
- cout << "Enter: QSECOFR SHUTDOWN" << endl;
-
- Or something like that...
-
-
- Mac:
-
- cout << "Click on ..." << endl;
-
-
- Seriously, there is a flag/BIOS call you can make if it is a DOS PC
- system. You'd be better off asking in one of the msdos programming
- groups.
-
-
-
- Phil Staite, team OS/2
- internet: pstaite@vnet.ibm.com internal: pstaite@rchland
-
-